package com.xyz.exception;

import com.xyz.enums.ResultEnum;

import lombok.Data;

@SuppressWarnings("serial")
@Data
public class SellException extends RuntimeException {

	
	private Integer code;

	public SellException(ResultEnum resultEnum) {
		super(resultEnum.getMessage());
		this.code = resultEnum.getCode();
	}

}
